home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
cafead1a
/
bar.bas
next >
Wrap
BASIC Source File
|
1999-08-28
|
506b
|
15 lines
Attribute VB_Name = "Bar"
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Public Const SW_HIDE = 0
Public Const SW_SHOW = 5
Public Sub TaskBar(Show As Boolean)
Dim bHwnd As Long
bHwnd = FindWindow("Shell_TrayWnd", "")
If Show Then
ShowWindow bHwnd, SW_SHOW
Else
ShowWindow bHwnd, SW_HIDE
End If
End Sub